package com.dahua.simplefactory.version4;

/**
 * 计算操作的抽象类
 * @author sunhongguang
 * @create 2022-01-09-11:50
 */
public abstract class Operation {

    protected double numberA = 0;
    protected double numberB = 0;

    public double getNumberA() {
        return numberA;
    }

    public void setNumberA(double numberA) {
        this.numberA = numberA;
    }

    public double getNumberB() {
        return numberB;
    }

    public void setNumberB(double numberB) {
        this.numberB = numberB;
    }

    /**
     * 提供一个抽象的计算方法，给子类去实现
     * @return
     */
    public abstract double getResult();
}
